package encryption.com;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class encrytionMD5 {

	/**
	 * @param args
	 * @throws NoSuchAlgorithmException 
	 */
	public static void main(String[] args) throws NoSuchAlgorithmException {
		 MessageDigest md5 = MessageDigest.getInstance("MD5");

		 String passwordHash = null;
		 String password="1";
		 
        
		 md5.update(password.getBytes());
         passwordHash = new String(md5.digest());
         
         System.out.println(passwordHash);
	}

}
